package com.flyco.modules.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.flyco.common.aspect.annotation.Dict;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class SysDepartStoreModel {

    /**=======================共用字段start========================================*/
    private String id;
    /**父机构ID*/
    private String parentId;
    /**状态（Depart:depart_status，Store:store_status）*/
    private Integer status;
    /**删除状态（0，正常，1已删除）*/
    @Dict(dicCode = "del_flag")
    private String delFlag;
    /**地址*/
    private String address;

    /**创建人*/
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**更新人*/
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**=======================共用字段end========================================*/
    /**机构/部门/店铺名称*/
    private String departName;
    /**英文名*/
    private String departNameEn;
    /**缩写*/
    private String departNameAbbr;
    /**排序*/
    private Integer departOrder;
    /**描述*/
    private String description;
    /**机构类别 1组织机构，2岗位*/
    @Dict(dicCode = "org_category")
    private String orgCategory;
    /**机构类型*/
    private String orgType;
    /**机构编码*/
    private String orgCode;
    /**手机号*/
    private String mobile;
    /**传真*/
    private String fax;
    /**备注*/
    private String memo;
    /**=======================店铺相关========================================*/
    /**门店编号*/
    @JsonSerialize(using= ToStringSerializer.class)
    private Long storeId;
    /**门店名称*/
    private String name;
    /**门店图标 url*/
    private String picture;
    /**门店logo url*/
    private String logo;
    private String storeQrCode;
    /**省*/
    private String province;
    /**城市*/
    private String city;
    /**区县*/
    private String district;
    /**省份编号*/
    private String provinceCode;
    /**城市编号*/
    private String cityCode;
    /**区编号*/
    private String districtCode;
    /**开始营业时间*/
    private String dayTimeStart;
    /**结束营业时间*/
    private String dayTimeEnd;
    /**经度*/
    private Double longitude;
    /**纬度*/
    private Double latitude;
    /**简单介绍*/
    private String intro;
    /**联系电话*/
    private String phone;
    /**联系人*/
    private String linkName;
    /**门店补货天数*/
    private Integer replenishmentDays;
    /**实体店门店图片url （暂时废弃）*/
    private String entityPicture;
    /**外部编码*/
    private String extCode;
    /**饿了么编码*/
    private String elemeCode;
    /**门店到期时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    /**店铺类型 （暂时废弃）*/
    @Dict(dicCode = "store_type")
    private Integer storeType;
    /**经营模式：1-直营 2-加盟*/
    @Dict(dicCode = "join_type")
    private Integer joinType;
    /**区域隔离分组id*/
    private Long storeGroupId;
    /**=======================店铺相关========================================*/


}
